﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Text;

namespace GKQC.DbHelper.ViewModels
{
    [Serializable]
    public class OrtFilter
    {
        public bool IsBillNo { get; set; }
        public string StartBillNo { get; set; }
        public string EndBillNo { get; set; }
        public bool IsModiDate { get; set; }
        public DateTime StartModiDate { get; set; }
        public DateTime EndModiDate { get; set; }
        public bool IsTestDate { get; set; }
        public DateTime StartTestDate { get; set; }
        public DateTime EndTestDate { get; set; }
        public bool IsFinishDate { get; set; }
        public DateTime StartFinishDate { get; set; }
        public DateTime EndFinishDate { get; set; }
        public bool IsExpireDate { get; set; }
        public DateTime StartExpireDate { get; set; }
        public DateTime EndExpireDate { get; set; }
        public string BillType { get; set; }
        public string BillNo { get; set; }
        public string Customer { get; set; }
        public string LotNo { get; set; }
        public string Series { get; set; }
        public string Size { get; set; }
        public double Cap { get; set; }
        public double Voltage { get; set; }
        public bool IsFinished { get; set; }
        public bool IsUnFinished { get; set; }
        public string Pn { get; set; }
        public string Paste { get; set; }
        public double TestTemp { get; set; }
        public string BoxNo { get; set; }
        public bool IsA { get; set; }
        public bool IsB { get; set; }
        public bool IsC { get; set; }
        public int RowCount { get; set; }
        public bool AllBill { get; set; }
        public int ReportId { get; set; }

        public static bool NoBad { get; set; }

        /// <summary>
        /// 是否合格： 0全部   1合格   2不合格
        /// </summary>
        public int IsValidIndex { get; set; }

    }

    public enum OrtBillType
    {
        None,
        /// <summary>
        /// 鋁電解電容高溫負荷壽命測試-樣品驗證
        /// </summary>
        [Description("鋁電解電容高溫負荷壽命測試-樣品驗證")]
        TS,

        /// <summary>
        /// 鋁電解電容高溫負荷壽命測試-研究驗證
        /// </summary>
        [Description("鋁電解電容高溫負荷壽命測試-研究驗證")] //单号也有LDW
        LDT,

        /// <summary>
        /// 鋁電解電容高溫負荷壽命測試-不良驗證
        /// </summary>
        [Description("鋁電解電容高溫負荷壽命測試-不良驗證")]
        BL,

        /// <summary>
        /// 鋁電解電容高溫負荷壽命測試-定期驗證
        /// </summary>
        [Description("鋁電解電容高溫負荷壽命測試-定期驗證")]
        TC,

        /// <summary>
        /// 鋁電解電容高溫無負荷壽命測試-樣品驗證
        /// </summary>
        [Description("鋁電解電容高溫無負荷壽命測試-樣品驗證")]
        SFTS,

        /// <summary>
        /// 鋁電解電容高溫無負荷壽命測試-研究驗證
        /// </summary>
        [Description("鋁電解電容高溫無負荷壽命測試-研究驗證")] //单号也有SFLDT
        SFLDT,

        /// <summary>
        /// 鋁電解電容高溫無負荷壽命測試-不良驗證
        /// </summary>
        [Description("鋁電解電容高溫無負荷壽命測試-不良驗證")]
        SFBL,

        /// <summary>
        /// 鋁電解電容高溫無負荷壽命測試-定期驗證
        /// </summary>
        [Description("鋁電解電容高溫無負荷壽命測試-定期驗證")]
        SFTC,

        /// <summary>
        /// 高溫波紋壽命試驗-鋁電解電容
        /// </summary>
        [Description("高溫波紋壽命試驗-鋁電解電容")]
        RC,

        /// <summary>
        /// 高溫波紋壽命試驗-固態電容
        /// </summary>
        [Description("高溫波紋壽命試驗-固態電容")]
        PRC,

        /// <summary>
        /// 固態電容高溫負荷壽命測試
        /// </summary>
        [Description("固態電容高溫負荷壽命測試")]
        LDP,

        /// <summary>
        /// 固態電容高溫負荷壽命測試-研究驗證
        /// </summary>
        [Description("固態電容高溫負荷壽命測試-研究驗證")]
        LDR,

        /// <summary>
        /// 固態電容高溫無負荷壽命測試
        /// </summary>
        [Description("固態電容高溫無負荷壽命測試")]
        SFLDP,

        /// <summary>
        /// 固態電容高溫無負荷壽命測試-研究驗證
        /// </summary>
        [Description("固態電容高溫無負荷壽命測試-研究驗證")]
        SFLDR,

        /// <summary>
        /// SuCAP半液半固負荷壽命測試-研究驗證
        /// </summary>
        [Description("SuCAP半液半固負荷壽命測試-研究驗證")]
        YGR,

        /// <summary>
        /// SuCAP半液半固負荷壽命測試-量产
        /// </summary>
        [Description("SuCAP半液半固負荷壽命測試-量产")]//
        YGL,

        /// <summary>
        /// SuCAP半液半固無負荷壽命測試-研究驗證
        /// </summary>
        [Description("SuCAP半液半固無負荷壽命測試-研究驗證")]
        SFYGR,

        /// <summary>
        /// SuCAP半液半固無負荷壽命測試-量产
        /// </summary>
        [Description("SuCAP半液半固無負荷壽命測試-量产")]
        SFYGL,
        /// <summary>
        /// 特殊試驗
        /// </summary>
        [Description("特殊試驗-量产")]
        S,

        /// <summary>
        /// 鋁電解電容高溫負荷壽命測試-研究驗證
        /// </summary>
        [Description("鋁電解電容高溫負荷壽命測試-研究驗證2")] //单号也有LDW
        LDY,
        /// <summary>
        /// 鋁電解電容高溫負荷壽命測試-研究驗證
        /// </summary>
        [Description("鋁電解電容无負荷壽命測試-研究驗證2")] //单号也有LDW
        SFLDY,

        /// <summary>
        /// 特殊試驗
        /// </summary>
        [Description("特殊試驗-研究驗證")]
        Y
    }
}
